﻿CREATE TABLE [dbo].[codeState] (
    [StateID]   INT          NOT NULL,
    [CountryID] INT          NOT NULL,
    [Abbrev]    VARCHAR (2)  NULL,
    [Name]      VARCHAR (40) NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the states in the United States and Canada.  Links to tblMarketCity.  Used to group all the markets according to state.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeState';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The state ID', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeState',
	@level2type = N'COLUMN', @level2name = N'StateID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The country ID.  The country that the state belongs to.  See codeCountry.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeState',
	@level2type = N'COLUMN', @level2name = N'CountryID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The state abbreviation code.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeState',
	@level2type = N'COLUMN', @level2name = N'Abbrev';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The full name of the state', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeState',
	@level2type = N'COLUMN', @level2name = N'Name';

